<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>scalation.event.ModelTest.PhoneModel</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link type="text/css" media="screen" rel="stylesheet" href="../../lib/template.css" />
      <script type="text/javascript" src="../../lib/jquery.js"></script>
      <script type="text/javascript" src="../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../lib/template.js"></script>
      <script type="text/javascript" src="../../lib/tools.tooltip.js"></script>
    
        </head>
        <body class="type">
      <div id="definition">
        <img src="../../lib/class_big.png" />
        <p id="owner"><a name="scalation" class="extype" href="../package.html">scalation</a>.<a name="scalation.event" class="extype" href="package.html">event</a>.<a name="scalation.event.ModelTest" class="extype" href="ModelTest$.html">ModelTest</a></p>
        <h1>PhoneModel</h1>
      </div>

      <h4 class="signature" id="signature">
      <span class="kind">class</span>
      <span class="symbol"> 
        <span class="name">PhoneModel</span>
        
        <span class="result"> extends <a name="scalation.event.Model" class="extype" href="Model.html">Model</a></span>
      </span>
      </h4>
      
          <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>This class models a simple phone simulation.</p></div><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent"><a name="scalation.event.Model" class="extype" href="Model.html">Model</a>, <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a>, <a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a>, <span name="scalation.ModelT" class="extype">ModelT</span>, AnyRef, <span name="scala.Any" class="extype">Any</span></div>
        </div></div>
        

      <div id="template">

        <div id="mbrsel">
          <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
          <div id="order">
                <span class="filtertype">Ordering</span>
                <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
              </div>
          <div id="ancestors">
                <span class="filtertype">Inherited</span>
                <ol><li class="hideall out"><span>Hide All</span></li>
                <li class="showall in"><span>Show all</span></li></ol>
                <ol id="linearization"><li name="scalation.event.ModelTest.PhoneModel" class="in"><span>PhoneModel</span></li><li name="scalation.event.Model" class="in"><span>Model</span></li><li name="scalation.util.Identity" class="in"><span>Identity</span></li><li name="scalation.util.Error" class="in"><span>Error</span></li><li name="scalation.ModelT" class="in"><span>ModelT</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
              </div>
          <div id="visbl">
              <span class="filtertype">Visibility</span>
              <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
            </div>
        </div>

        <div class="members" id="constructors">
              <h3>Instance Constructors</h3>
              <ol><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#this" data-isabs="false">
      <a id="this:PhoneModel"></a>
      <h4 class="signature">
      <span class="kind">new</span>
      <span class="symbol"> 
        <span class="name">PhoneModel</span>
        
        <span class="params">(<span name="name">name: String</span>, <span name="arrivalDist">arrivalDist: <a name="scalation.random.Variate" class="extype" href="../random/Variate.html">Variate</a></span>, <span name="maxCalls">maxCalls: <span name="scala.Int" class="extype">Int</span></span>, <span name="serviceDist">serviceDist: <a name="scalation.random.Variate" class="extype" href="../random/Variate.html">Variate</a></span>)</span>
      </span>
      </h4>
      <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="paramcmts block"><dt class="param">name</dt><dd class="cmt"><p>the name of the simulation model</p></dd><dt class="param">arrivalDist</dt><dd class="cmt"><p>the inter-arrival time distribution</p></dd><dt class="param">maxCalls</dt><dd class="cmt"><p>the maximum number of phone call (stopping condition)</p></dd></dl></div>
    </li></ol>
            </div>

        <div class="types members" id="types">
              <h3>Type Members</h3>
              <ol><li visbl="pub" name="scalation.event.ModelTest.PhoneModel.Arrival" data-isabs="false">
      <a id="Arrival:Arrival"></a>
      <h4 class="signature">
      <span class="kind">case class</span>
      <span class="symbol"> 
        <a href="ModelTest$$PhoneModel$Arrival.html"><span class="name">Arrival</span></a>
        
        <span class="params">(<span name="call">call: Entity</span>)</span><span class="result"> extends Event with Product with Serializable</span>
      </span>
      </h4>
      <p class="comment cmt">Create a subclass of Event for Arrival events.</p>
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel.Departure" data-isabs="false">
      <a id="Departure:Departure"></a>
      <h4 class="signature">
      <span class="kind">case class</span>
      <span class="symbol"> 
        <a href="ModelTest$$PhoneModel$Departure.html"><span class="name">Departure</span></a>
        
        <span class="params">(<span name="call">call: Entity</span>)</span><span class="result"> extends Event with Product with Serializable</span>
      </span>
      </h4>
      <p class="comment cmt">Create a subclass of Event for Departure events.</p>
    </li></ol>
            </div>
        
        

        <div class="values members" id="values">
              <h3>Value Members</h3>
              <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
      <a id="!=(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">##</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
      <a id="==(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="prt" name="scalation.ModelT#_clock" data-isabs="false">
      <a id="_clock:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">_clock</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd>ModelT</dd></dl></div>
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#aLinks" data-isabs="false">
      <a id="aLinks:Array[CausalLink]"></a>
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol"> 
        <span class="name">aLinks</span>
        
        <span class="result">: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.event.CausalLink" class="extype" href="CausalLink.html">CausalLink</a>]</span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.Model#animate" data-isabs="false">
      <a id="animate(Identity,Value,Color,Shape,Event,Event,Array[Double]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">animate</span>
        
        <span class="params">(<span name="who">who: <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></span>, <span name="what">what: <span name="scala.Enumeration.Value" class="extype">Value</span></span>, <span name="color">color: Color</span>, <span name="shape">shape: Shape</span>, <span name="from">from: <a name="scalation.event.Event" class="extype" href="Event.html">Event</a></span>, <span name="to">to: <a name="scalation.event.Event" class="extype" href="Event.html">Event</a></span>, <span name="at">at: <span name="scala.Array" class="extype">Array</span>[<span name="scala.Double" class="extype">Double</span>] = <span class="symbol"><span class="name"><a href="../../scala/package.html">Array ()</a></span></span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Put a edge command on the animation queue.</p><div class="fullcomment"><div class="comment cmt"><p>Put a edge command on the animation queue.</p></div><dl class="paramcmts block"><dt class="param">who</dt><dd class="cmt"><p>who is being animated</p></dd><dt class="param">what</dt><dd class="cmt"><p>what animation command</p></dd><dt class="param">color</dt><dd class="cmt"><p>the color the edge</p></dd><dt class="param">shape</dt><dd class="cmt"><p>the shape of the edge</p></dd><dt class="param">from</dt><dd class="cmt"><p>the location of the origination node</p></dd><dt class="param">to</dt><dd class="cmt"><p>the location of the destination node</p></dd><dt class="param">at</dt><dd class="cmt"><p>the location of the edge (empty array =&gt; implicitly determined)
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#animate" data-isabs="false">
      <a id="animate(Identity,Value,Color,Shape,Array[Double]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">animate</span>
        
        <span class="params">(<span name="who">who: <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></span>, <span name="what">what: <span name="scala.Enumeration.Value" class="extype">Value</span></span>, <span name="color">color: Color</span>, <span name="shape">shape: Shape</span>, <span name="at">at: <span name="scala.Array" class="extype">Array</span>[<span name="scala.Double" class="extype">Double</span>]</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Put a node/token command on the animation queue.</p><div class="fullcomment"><div class="comment cmt"><p>Put a node/token command on the animation queue.</p></div><dl class="paramcmts block"><dt class="param">who</dt><dd class="cmt"><p>who is being animated</p></dd><dt class="param">what</dt><dd class="cmt"><p>what animation command</p></dd><dt class="param">color</dt><dd class="cmt"><p>the color the node/token</p></dd><dt class="param">shape</dt><dd class="cmt"><p>the shape of the node/token</p></dd><dt class="param">at</dt><dd class="cmt"><p>the location of the node/token
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="prt" name="scalation.ModelT#animating" data-isabs="false">
      <a id="animating:Boolean"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">animating</span>
        
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd>ModelT</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">asInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#busy" data-isabs="false">
      <a id="busy:Boolean"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">busy</span>
        
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.Model#cancel" data-isabs="false">
      <a id="cancel(Event):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">cancel</span>
        
        <span class="params">(<span name="event">event: <a name="scalation.event.Event" class="extype" href="Event.html">Event</a></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Remove an event from the Future Event List (FEL) before it occurs, thus
 cancelling the event.</p><div class="fullcomment"><div class="comment cmt"><p>Remove an event from the Future Event List (FEL) before it occurs, thus
 cancelling the event.</p></div><dl class="paramcmts block"><dt class="param">event</dt><dd class="cmt"><p>the event to cancel
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.ModelT#clock" data-isabs="false">
      <a id="clock:Double"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">clock</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>ModelT</dd></dl></div>
    </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">clone</span>
        
        <span class="params">()</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">eq</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">equals</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">finalize</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Error#flaw" data-isabs="false">
      <a id="flaw(String,String):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">flaw</span>
        
        <span class="params">(<span name="method">method: String</span>, <span name="message">message: String</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Show the flaw by printing the error message.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Show the flaw by printing the error message.</p></div><dl class="paramcmts block"><dt class="param">method</dt><dd class="cmt"><p>the method where the error occured</p></dd><dt class="param">message</dt><dd class="cmt"><p>the error message
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a></dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
      <a id="getClass():java.lang.Class[_]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">getClass</span>
        
        <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#getStatistics" data-isabs="false">
      <a id="getStatistics:ListBuffer[Statistic]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">getStatistics</span>
        
        <span class="result">: <span name="scala.collection.mutable.ListBuffer" class="extype">ListBuffer</span>[<a name="scalation.stat.Statistic" class="extype" href="../stat/Statistic.html">Statistic</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Return the statistical results of the simulation (statistics for each part).</p><div class="fullcomment"><div class="comment cmt"><p>Return the statistical results of the simulation (statistics for each part).
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a> → ModelT</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">hashCode</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#id" data-isabs="false">
      <a id="id:Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">id</span>
        
        <span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Get the id (unique identifier).</p><div class="fullcomment"><div class="comment cmt"><p>Get the id (unique identifier).
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">isInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#me" data-isabs="false">
      <a id="me:String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">me</span>
        
        <span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Return the full identity.</p><div class="fullcomment"><div class="comment cmt"><p>Return the full identity.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#nCalls" data-isabs="false">
      <a id="nCalls:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">nCalls</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#nDrops" data-isabs="false">
      <a id="nDrops:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">nDrops</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#nHangups" data-isabs="false">
      <a id="nHangups:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">nHangups</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">ne</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">notify</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">notifyAll</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#protoArrival" data-isabs="false">
      <a id="protoArrival:Arrival"></a>
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol"> 
        <span class="name">protoArrival</span>
        
        <span class="result">: <a name="scalation.event.ModelTest.PhoneModel.Arrival" class="extype" href="ModelTest$$PhoneModel$Arrival.html">Arrival</a></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.ModelTest.PhoneModel#protoDeparture" data-isabs="false">
      <a id="protoDeparture:Departure"></a>
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol"> 
        <span class="name">protoDeparture</span>
        
        <span class="result">: <a name="scalation.event.ModelTest.PhoneModel.Departure" class="extype" href="ModelTest$$PhoneModel$Departure.html">Departure</a></span>
      </span>
      </h4>
      
    </li><li visbl="pub" name="scalation.event.Model#report" data-isabs="false">
      <a id="report:Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">report</span>
        
        <span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Report on the statistical results of the simulation for the overall model.</p><div class="fullcomment"><div class="comment cmt"><p>Report on the statistical results of the simulation for the overall model.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a> → ModelT</dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#report" data-isabs="false">
      <a id="report(Array[(String, Double)]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">report</span>
        
        <span class="params">(<span name="vars">vars: <span name="scala.Array" class="extype">Array</span>[(String, <span name="scala.Double" class="extype">Double</span>)]</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Report on the statistical results of the simulation for the overall model.</p><div class="fullcomment"><div class="comment cmt"><p>Report on the statistical results of the simulation for the overall model.</p></div><dl class="paramcmts block"><dt class="param">vars</dt><dd class="cmt"><p>the result/output variables for the simulation
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#report" data-isabs="false">
      <a id="report(String,Array[CausalLink]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">report</span>
        
        <span class="params">(<span name="eventType">eventType: String</span>, <span name="links">links: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.event.CausalLink" class="extype" href="CausalLink.html">CausalLink</a>] = <span class="symbol"><span class="name"><a href="../../scala/package.html">Array ()</a></span></span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Report on the statistical results of the simulation for a given type of
 event.</p><div class="fullcomment"><div class="comment cmt"><p>Report on the statistical results of the simulation for a given type of
 event.</p></div><dl class="paramcmts block"><dt class="param">eventType</dt><dd class="cmt"><p>the type of event (e.g., Arrival, Departure)</p></dd><dt class="param">links</dt><dd class="cmt"><p>the causal links enimating from this event type
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#schedule" data-isabs="false">
      <a id="schedule(Event,Double):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">schedule</span>
        
        <span class="params">(<span name="event">event: <a name="scalation.event.Event" class="extype" href="Event.html">Event</a></span>, <span name="timeDelay">timeDelay: <span name="scala.Double" class="extype">Double</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Place an event on the Future Event List (FEL) for later execution, thus
 scheduling the event to occur sometime in the future.</p><div class="fullcomment"><div class="comment cmt"><p>Place an event on the Future Event List (FEL) for later execution, thus
 scheduling the event to occur sometime in the future.  Events are ordered
 by their event/act time.</p></div><dl class="paramcmts block"><dt class="param">event</dt><dd class="cmt"><p>the event to schedule</p></dd><dt class="param">timeDelay</dt><dd class="cmt"><p>how far in the future to schedule the event
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#setName" data-isabs="false">
      <a id="setName(String):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">setName</span>
        
        <span class="params">(<span name="label">label: String</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Set the name.</p><div class="fullcomment"><div class="comment cmt"><p>Set the name.</p></div><dl class="paramcmts block"><dt class="param">label</dt><dd class="cmt"><p>the name to assign
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#simType" data-isabs="false">
      <a id="simType:String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">simType</span>
        
        <span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Get the type of the simulation object.</p><div class="fullcomment"><div class="comment cmt"><p>Get the type of the simulation object.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#simulate" data-isabs="false">
      <a id="simulate(Event,Double):ListBuffer[Statistic]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">simulate</span>
        
        <span class="params">(<span name="firstEvent">firstEvent: <a name="scalation.event.Event" class="extype" href="Event.html">Event</a></span>, <span name="startTime">startTime: <span name="scala.Double" class="extype">Double</span></span>)</span><span class="result">: <span name="scala.collection.mutable.ListBuffer" class="extype">ListBuffer</span>[<a name="scalation.stat.Statistic" class="extype" href="../stat/Statistic.html">Statistic</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Run the simulation by iteratively processing events in time order.</p><div class="fullcomment"><div class="comment cmt"><p>Run the simulation by iteratively processing events in time order.</p></div><dl class="paramcmts block"><dt class="param">firstEvent</dt><dd class="cmt"><p>the first event is used to prime the simulation</p></dd><dt class="param">startTime</dt><dd class="cmt"><p>the time at which the simulation is to begin
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.event.Model#simulate" data-isabs="false">
      <a id="simulate(Double):ListBuffer[Statistic]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">simulate</span>
        
        <span class="params">(<span name="startTime">startTime: <span name="scala.Double" class="extype">Double</span> = <span class="symbol">0.</span></span>)</span><span class="result">: <span name="scala.collection.mutable.ListBuffer" class="extype">ListBuffer</span>[<a name="scalation.stat.Statistic" class="extype" href="../stat/Statistic.html">Statistic</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Run the simulation by iteratively processing events in time order.</p><div class="fullcomment"><div class="comment cmt"><p>Run the simulation by iteratively processing events in time order.
 Requires at least one to already be scheduled (see next method).</p></div><dl class="paramcmts block"><dt class="param">startTime</dt><dd class="cmt"><p>the time at which the simulation is to begin
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.event.Model" class="extype" href="Model.html">Model</a> → ModelT</dd></dl></div>
    </li><li visbl="prt" name="scalation.ModelT#simulating" data-isabs="false">
      <a id="simulating:Boolean"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">simulating</span>
        
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd><dt>Definition Classes</dt><dd>ModelT</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
      <a id="synchronized[T0](⇒ T0):T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">synchronized</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#toString" data-isabs="false">
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">toString</span>
        
        <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li></ol>
            </div>

        <div name="scalation.event.Model" class="parent">
              <h3>Inherited from <a name="scalation.event.Model" class="extype" href="Model.html">Model</a></h3>
            </div><div name="scalation.util.Identity" class="parent">
              <h3>Inherited from <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></h3>
            </div><div name="scalation.util.Error" class="parent">
              <h3>Inherited from <a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a></h3>
            </div><div name="scalation.ModelT" class="parent">
              <h3>Inherited from <span name="scalation.ModelT" class="extype">ModelT</span></h3>
            </div><div name="scala.AnyRef" class="parent">
              <h3>Inherited from AnyRef</h3>
            </div><div name="scala.Any" class="parent">
              <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
            </div>

      </div>
      
      <div id="tooltip"></div>
      
    </body>
      </html>